Skip to main content

Delete Folder

AutomatR.OneDriveApp.Activities.DeleteFolder

The "Delete Folder" activity in AutomatR is part of the OneDrive activities package, enabling users to automate the deletion of folders from Microsoft OneDrive. This activity is designed to streamline the management of folders within OneDrive, allowing users to remove unnecessary or obsolete folders as part of their automation workflows.

Properties

NameDescription
Input
PathSpecifies the path of the folder to be deleted within OneDrive. It represents the location of the folder within the user's OneDrive account. String variables containing the folder path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Delete Folder" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1.
Output
ResultOutputs the result of the "Delete Folder" operation, indicating whether the folder deletion was successful or any encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Delete Folder" activity onto the workflow.
  2. Configure the properties by specifying the path of the folder to be deleted within OneDrive.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to delete the specified folder within OneDrive.

Example: Consider an example where the "Delete Folder" activity is used to delete a folder named "ObsoleteDocuments" from the "Documents" directory in OneDrive:

Delete Folder:
Display Name: "Delete Obsolete Documents Folder"
Path: "/Documents/ObsoleteDocuments"
Result: isDeleteSuccessful

In this example, the activity deletes the folder "ObsoleteDocuments" from the specified path within the "Documents" directory in OneDrive. The result of the operation (success or failure) is stored in the Boolean variable "isDeleteSuccessful" for further handling in the workflow.